<template>
    <el-menu
        :default-active="activeIndex"
        mode="vertical"
        background-color="#545c64"
        text-color="#fff"
        active-text-color="#ffd04b"
        @select="handleSelect"
    >
        <el-menu-item index="user">用户管理</el-menu-item>
        <el-menu-item index="essay">文章合成管理</el-menu-item>
    </el-menu>
</template>

<script>
export default {
    data() {
        return {
            activeIndex:"user"
        }
    },
    name: "navbar",
    methods:{
        handleSelect(key, keyPath) {
            console.log(key, keyPath);
        }
    }
}
</script>

<style scoped>

</style>
